package com.woniuxy.carlife.carlifeusermodel.param;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author zjq
 * @ClassName:UserPhone
 * @Description:手机参数
 * @date 2021/4/7 22:40
 **/

@Data
@ApiModel("用户传入手机号")
public class UserTelephone {
    @NotNull(message = "userPhone")
    @ApiModelProperty(value = "手机号", example = "1632324")

    private String userPhone;

    @Size(min = 4, max = 4, message = "验证码必须是4位")
    @NotNull(message = "vCode")
    @ApiModelProperty(value = "验证码", example = "1314")

    private String vCode;

    @Size(min = 6, max = 12, message = "用户密码必须是6~12之间")
    @NotNull(message = "userPassword")
    @ApiModelProperty(value = "用户密码", example = "1255432sdf")
    private String userPassword;
}
